package com.winning.sjzc.xmgl.service;


import com.winning.sjzc.xmgl.entity.XmglEntity;

import java.util.List;

/**
 * @Author: jinx
 * @Description: 项目管理service
 * @Date: 2019-04-30
 **/
public interface XmglService {

    //查询项目管理列表
    List<XmglEntity> queryXmglTableService(String xmmc, int startNum, int endNum);

    //根据项目代码查询是否存在
    boolean queryIfXmExistService(String xmdm);

    int insertXminfoService(String xmdm, String xmmc, String xmms);

    int updateXminfoService(String xmdm, String xmmc, String xmms);

    int delXminfoService(String xmdm);

    String getNewXmdmService();

    //查询项目数据集标准数据
    List<XmglEntity> querySjjTableService(String sjjmc, String xmdm, String fldm, int startNum, int endNum);

    //查询数据集分类树数据
    List<Object> querySjjflTreeService(String xmdm);

    //查询导入数据集标准数据
    List<XmglEntity> querySjjImportTableService(String sjjmc, String xmdm, int startNum, int endNum);

    //导入数据集
    int importSjjService(List<XmglEntity> importList);

    //删除数据集
    int delSjjService(String lsh);

    //更新项目数据集版本
    int updateVersionService(String xmdm);


    /**
     * 生成ETL脚本
     * @return
     */
    String createEtlScript(String xmdm);
}
